package com.neulogistics.contrib.procuredcenter.api.application.viewmodel;

import com.neulogistics.contrib.procuredcenter.domain.model.enumeration.PurchaseType;
import com.neulogistics.contrib.procuredcenter.domain.model.valueobject.PurchaseItem;
import com.neulogistics.contrib.procuredcenter.domain.model.valueobject.VendorInfo;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class PurchaseOrderViewModel implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 采购单id
     */
    public String purchaseOrderId;

    /**
     * 采购单类型：0:进货；1:退货
     */
    public PurchaseType purchaseType;

    /**
     * 关联中心库房id
     */
    public Integer warehouseId;

    /**
     * 采购项，{商品id、数量、单价、计量单位、供应商}
     */
    public PurchaseItem purchaseItem;

    /**
     * 采购单总计
     */
    public Double purchaseTotal;

    /**
     * 生成时间
     */
    public Date createTime;
}
